package cn.avalon.org.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.avalon.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @description: 店铺实体类
 * @author: Avalon
 * @date: 2022年08月21日 ： 15:22
 * @version: ver1.0
 * @email 709785494@qq.com
 */
@Data
public class Shop extends BaseDomain {
    // 店铺名称
    @Excel(name = "店铺名称", orderNum = "1", width = 30)
    private String name;
    // 电话座机
    @Excel(name = "店铺电话", orderNum = "2", width = 30)
    private String tel;
    // 入驻时间
    @Excel(name = "入驻时间", orderNum = "3", width = 30, exportFormat="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date registerTime = new Date();
    // 店铺状态：待审核【1】 ，审核通过，待激活【2】，激活成功【3】，审核失败->驳回【4】
    @Excel(name = "店铺状态", orderNum = "4", width = 30)
    private Integer state = 1;
    // 店铺地址
    @Excel(name = "店铺地址", orderNum = "5", width = 30)
    private String address;
    // 店铺logo
    @Excel(name = "店铺logo", orderNum = "6", width = 30)
    private String logo;
    // 店铺管理员ID
    private Long adminId;
    // 关联对象 - 店铺管理员对象
    private Employee admin;


}
